package com.nd.android.u.ui.activity.base;

import android.os.Bundle;

import com.common.StarAppConst;
import com.common.widget.CommonActivityTitle;
import com.common.widget.CommonActivityTitle.TitleBtnCallback;
import com.nd.android.u.ui.R;
import com.product.android.ui.activity.BaseFragmentActivity;

public class NetUnReachActivity extends BaseFragmentActivity {
	
	@Override
	protected boolean _onCreate(Bundle savedInstanceState) {
		if(super._onCreate(savedInstanceState)){
			this.setContentView(R.layout.netunreach);
			super.initComponent();
			CommonActivityTitle mTvTitle=(CommonActivityTitle) findViewById(R.id.common_chat_title);
			mTvTitle.setTitleTextTypeface(StarAppConst.getInstance().getLTXTypeface(), false);
			mTvTitle.setTitleText(getString(R.string.net_warn_no_network_title));
			mTvTitle.setTitleBtnCallback(mTitleBtnCallback);
			super.initEvent();
			return true;
		}
		return false;
	}

	
	private TitleBtnCallback mTitleBtnCallback=new TitleBtnCallback() {
		@Override
		public void onBtnClick(int clickType) {
			switch (clickType) {
			case CommonActivityTitle.ON_LEFT_CLICK_CALL_BACK:
				finish();
				break;
			case CommonActivityTitle.ON_RIGHT_CLICK_CALL_BACK:
				break;
			default:
				break;
			}
		}
	};

	
}